﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IDAL;
using Factory;
using DAL;
using Model;

namespace BLL
{
    public class B_VipLevel : IVipLevel
    {
        WishDayEntities _e;
        public B_VipLevel()
        {
            _e = new WishDayEntities();
        }
        public void Add(VipLevel obj)
        {
            CreateFactory.GetVipLevel().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetVipLevel().Delete(id);
        }

        public VipLevel FindById(int id)
        {
            return CreateFactory.GetVipLevel().FindById(id);
        }

        public List<VipLevel> GetAll()
        {
            return CreateFactory.GetVipLevel().GetAll();
        }

        public void Update(int id, VipLevel obj)
        {
            CreateFactory.GetVipLevel().Update(id, obj);
        }
    }
}
